<%--
	User: dizem@126.com
	Time: 11-6-27 上午10:51
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv=content-type
        content="text/html; charset=UTF-8;charset=utf-8"/>
  <title>18团购 - 管理后台</title>
  <link rel="stylesheet" href="../css/index.css" type="text/css" media="screen" charset="utf-8"/>
  <script type="text/javascript" src="../js/jquery-1.6.js"></script>
  <script type="text/javascript">
    $(document).ready(function() {
      $('#user_li').attr("class", "current")
    })
  </script>
</head>
<body>
<jsp:include page="../common/adminHeader.jsp"/>
<div id="bd" class="cf">
  <div id="user">
    <div class="dashboard" id="dashboard">
      <ul>
        <li>
          <a href="/admin/listUser.action">用户列表</a><span></span>
        </li>
        <li>
          <a href="/admin/listAdmin.action">管理员列表</a><span></span>
        </li>
        <li class="current">
          <a href="#">编辑用户</a><span></span>
        </li>
      </ul>
    </div>
<div id="content" class="clear mainwide">
  <div class="clear box">
    <div class="box-top"></div>
    <div class="box-content">
      <div class="head">
        <h2>编辑用户</h2>
        <b style="margin-left: 20px; font-size: 16px;">（${user.email}/${user.username}）</b>
      </div>
      <div class="sect">
        <s:action name="listCity" namespace="/" id="listCity"/>
        <s:form id="login_user_form" namespace="/admin" action="updateUser" method="post"
                theme="simple">
          <div class="wholetip clear">
            <h3>1、身份信息</h3>
          </div>
          <div class="field">
            <label for="txt_email">Email</label>
            <s:textfield id="txt_email" size="30" name="user.email"
                         cssClass="f-input" readonly="true"/>
          </div>
          <div class="field">
            <label for="txt_username">用户名</label>
            <s:textfield id="txt_username" size="16" name="user.username"
                         cssClass="f-input" readonly="true"/>
          </div>
          <div class="field">
            <label for="txt_realname">真实姓名</label>
            <s:textfield id="txt_realname" size="16" name="user.realname"
                         cssClass="f-input"/>
          </div>
          <div class="wholetip clear">
            <h3>2、基本信息</h3>
          </div>
          <div class="field">
            <label for="city">城市</label>
            <select class="tf-input" name="cityName">
              <s:iterator id="city" value="#listCity.cities">
                <s:if test="#cityName == #city.chnName">
                  <option selected>
                </s:if>
                <s:else>
                  <option>
                </s:else>
                <s:property value="#city.chnName"/></option>
              </s:iterator>
            </select>
          </div>
          <div class="field">
            <label for="txt_zipCode">邮政编码</label>
            <s:textfield id="txt_zipCode" size="10" name="user.zipCode"
                         cssClass="f-input"/>
          </div>
          <div class="field">
            <label for="txt_address">配送地址</label>
            <s:textfield id="txt_address" size="100" name="user.address"
                         cssClass="f-input"/>
          </div>
          <div class="field">
            <label for="txt_mobile">手机号码</label>
            <s:textfield id="txt_mobile" size="100" name="user.mobile"
                         cssClass="f-input"/>
          </div>
          <div class="wholetip clear">
            <h3>3、附加信息</h3>
          </div>
          <div class="field">
            <label>用户权限</label>
            <select name="accountInfo">
              <option>管理员</option>
              <option selected>普通用户</option>
            </select>
          </div>
          <div class="act">
            <s:submit value="保存" name="commit" id="submit" cssClass="formbutton"/>
            <input type="button" value="返回" onclick="location.href = 'listUser'"
                   class="formbutton"/>
          </div>
        </s:form>
      </div>
    </div>
    <div class="box-bottom"></div>
  </div>
</div>

    <div id="sidebar"></div>
  </div>
</div>
<jsp:include page="../common/footer.jsp"/>
</body>
</html>
		